﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Esosi.Entity
{
    [Table("GM_CHARGE_POLICY_DETAIL")]
    public class GmChargePolicyDetail
    {
        [Key]
        [Column("ITEM_ID")]
        public long ITEM_ID { get; set; }

        [Column("POLICY_FEE_TYPE_CODE")]
        public long PolicyFeeTypeCode { get; set; }

        [Column("POLICY_FEE_TYPE_NAME")]
        public string PolicyFeeTypeName { get; set; }

        [Column("PERCENT")]
        public decimal Percent { get; set; }

        [Column("POLICY_ID")]
        public long PolicyId { get; set; }

        public virtual GmChargePolicy GmChargePolicy { get; set; }

        [Column("RATION")]
        public decimal Ration { get; set; }
    }
}